package cn.bs.busuo.account.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Order {
    /**
     * 用户名
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("用户名")
    @Length(max = 50, message = "编码长度不能超过50")
    private String buyerUsername;
    /**
     * 景点ID
     */
    @ApiModelProperty("景点ID")
    private Long sightsId;
    /**
     * 景点门票名
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("景点门票名")
    @Length(max = 50, message = "编码长度不能超过50")
    private String ticketName;
    /**
     * 收货人
     */
    @Size(max = 32, message = "编码长度不能超过32")
    @ApiModelProperty("收货人")
    @Length(max = 32, message = "编码长度不能超过32")
    private String receiverName;
    /**
     * 收货电话
     */
    @Size(max = 32, message = "编码长度不能超过32")
    @ApiModelProperty("收货电话")
    @Length(max = 32, message = "编码长度不能超过32")
    private String receiverPhone;
    /**
     * 身份证
     */
    @Size(max = 32, message = "编码长度不能超过32")
    @ApiModelProperty("身份证")
    @Length(max = 32, message = "编码长度不能超过32")
    private String identity;
    /**
     * 商品数量
     */
    @ApiModelProperty("商品数量")
    private Integer goodsNum;
}
